<template>
    <el-table
      :data="gs"
      style="width: 100%">
      <el-table-column
        prop="goodsname"
        label="商品名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="status"
        label="商品状态"
        width="180">
      </el-table-column>
      <el-table-column
        prop="district"
        label="商品分区"
        width="180">
      </el-table-column>
      <el-table-column
        prop="counts"
        label="商品数量"
        width="180">
      </el-table-column>
      <el-table-column
        prop="price"
        label="商品价格"
        width="180">
      </el-table-column>
      <el-table-column
        prop="sname"
        label="商家名称"
        width="180">
      </el-table-column>
     <el-pagination
        small
        layout="prev, pager, next"
        :total="50">
     </el-pagination>
    </el-table>
  </template>

  <script>
    export default {
    created() {
        let _this = this
        axios.get('http://localhost:8888/chuyangc/sellers/gs').then(function (response){
            _this.gs = response.data
            console.log(response)
        })
    },
    data() {
        return {
            gs: {
                gid:'',
                goodsname: '',
                status: '',
                district: '',
                counts: '',
                price: 0,
                sname: ''
            }
        }
    }
    }
</script>